package com.jdqzyy.noobnoob.common.config;

import com.jdqzyy.noobnoob.common.interceptor.ResponseResultInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author Zyy
 * @Description:系统的拦截器配置
 * @date 2020/11/21下午8:26
 * @slogan 天下风云出我辈，一入代码岁月催
 */
@Configuration
public class NoobWebConfigurer implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ResponseResultInterceptor());
    }
}
